﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master"
    AutoEventWireup="true" CodeBehind="RegCompanyAndArea.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.RelationQuery.RegCompanyAndArea" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <div class="maincon">
            <div class="note">
                添加配送企业及配送区域</div>
            <div class="note2">
            </div>
            <table>
                <tr>
                    <th align="right">
                        企业名称：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtcompanyname" runat="server" Width="180px"></asp:TextBox><font color="red">（必填）</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtcompanyname"
                            ErrorMessage="企业名称不能为空！" Display="none" SetFocusOnError="true" ValidationGroup="1"></asp:RequiredFieldValidator>
                    </td>
                    <th align="right">
                        固定电话：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtTelNo" runat="server"></asp:TextBox>(区号-电话号码)<font color="red">（必填）</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtTelNo"
                            ErrorMessage="固定电话不能为空！" Display="none" SetFocusOnError="true" ValidationGroup="1">（必填）</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th align="right">
                        联系人：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtContactPerson" runat="server"></asp:TextBox><font color="red">（必填）</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtContactPerson"
                            ErrorMessage="联系人不能为空！"  SetFocusOnError="true" Display="None" ValidationGroup="1">（必填）</asp:RequiredFieldValidator>
                    </td>
                    <th align="right">
                        联系人手机：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtCellNo" runat="server"></asp:TextBox><font color="red">（必填）</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtCellNo"
                            ErrorMessage="联系人手机不能为空！"  SetFocusOnError="true" Display="None" ValidationGroup="1">（必填）</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="联系人手机填写有误"
                            ControlToValidate="txtCellNo" ValidationExpression="[0]{0,1}\d{11}"  SetFocusOnError="true" Display="None" ValidationGroup="1"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <th align="right">
                        法人代表：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtLayMan" runat="server"></asp:TextBox><font color="red">（必填）</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtLayMan"
                            ErrorMessage="法人代表不能为空！"  SetFocusOnError="true" Display="None" ValidationGroup="1">（必填）</asp:RequiredFieldValidator>
                    </td>
                    <th align="right">
                        公司地址：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox><font color="red">（必填）</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtAddress"
                            ErrorMessage="公司地址不能为空！"  SetFocusOnError="true" Display="None" ValidationGroup="1">（必填）</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th align="right">
                        经营许可证号：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtBusinessCertificate" runat="server"></asp:TextBox><font color="red">（必填）</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtBusinessCertificate"
                            ErrorMessage="经营许可证号不能为空！"  SetFocusOnError="true" Display="None" ValidationGroup="1">（必填）</asp:RequiredFieldValidator>
                    </td>
                    <th align="right">
                        经营许可证有效期：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtBusinessCertificateDate" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <th align="right">
                        GSP认证编号：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtGSPCode" runat="server"></asp:TextBox><font color="red">（必填）</font>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtGSPCode"
                            ErrorMessage="GSP认证编号不能为空！"  SetFocusOnError="true" Display="None" ValidationGroup="1">（必填）</asp:RequiredFieldValidator>
                    </td>
                    <th align="right">
                        GSP认证有效期：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtGSPTime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <th align="right">
                        传真：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtFax" runat="server"></asp:TextBox>
                    </td>
                    <th align="right">
                        电子邮件：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="txtWebsite" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="revDianZiYouJian" runat="server" ErrorMessage="电子邮件格式不正确！"
                    ControlToValidate="txtWebsite" SetFocusOnError="true" Display="None" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                    ValidationGroup="1"></asp:RegularExpressionValidator>
                (如：aa@bb.com)
                    </td>
                </tr>
                <tr>
                    <th align="right">
                        经营范围：
                    </th>
                    <td align="left" colspan="3">
                        <asp:TextBox ID="txtBusinessRange" runat="server" Height="104px" TextMode="MultiLine"
                            Width="450px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <th align="right">
                        备注：
                    </th>
                    <td align="left" colspan="3">
                        <asp:TextBox ID="txtRemarks" runat="server" Height="104px" TextMode="MultiLine" Width="450px"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div class="listip">
            <ul>
                <li>提示:带（必填） 不能为空，同一企业信息请不要重复提交。经营许可证号是配送企业的唯一标识，请投标企业准确填写。</li>
            </ul>
        </div>
        <div class="maincon">
            <div id="note">
                可配送区域管理</div>
            <div id="note2">
            </div>
        </div>
        <br />
        <asp:HiddenField ID="hidStatus" runat="server" />
        <asp:GridView ID="gvwArea" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
            DataKeyNames="AreaID">
            <Columns>
                <asp:BoundField DataField="AreaName" HeaderText="地区名称" ItemStyle-Width="70%" HeaderStyle-Width="70%" />
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox ID="addTable_chkAll" runat="server" OnClick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwArea','ctl00_ContentPlaceHolder1_gvwArea_ctl01_addTable_chkAll');" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="checkbox1" runat="server" OnClick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwArea','ctl00_ContentPlaceHolder1_gvwArea_ctl01_addTable_chkAll');" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <div class="listip">
            <ul>
                <li>提示:<span></span></li>
            </ul>
        </div>
        <div class="listctrlq">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List"
                ShowMessageBox="True" ShowSummary="False" ValidationGroup="1" />
            <asp:Button ID="btnAdd" runat="server" CssClass="btn" OnClick="btnAdd_Click" Text="提交"
                ValidationGroup="1" ToolTip="将企业信息提交给中心方" />
            &nbsp;&nbsp; 验证码：<asp:TextBox ID="txtCode" runat="server" CssClass="input" MaxLength="4"
                Width="40"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCode"
                 SetFocusOnError="true" Display="None" ErrorMessage="验证码不能为空！"  ValidationGroup="1"></asp:RequiredFieldValidator>
            <img alt="看不清？单击重新获取验证码" id="Img" title="看不清？单击重新获取验证码" src="../../CommonPage/Code.aspx"
                onclick="javascript:this.src = '../../CommonPage/Code.aspx?' + Math.random();"
                style="border-width: 0px; vertical-align: bottom; cursor: hand;" />
            <font color="red">（必填）</font></div>
    </div>
</asp:Content>
